package com.vipboot.platform.system.crud.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.vipboot.framework.mybatisplus.annotation.DataColumn;
import com.vipboot.framework.mybatisplus.annotation.DataPermission;
import com.vipboot.platform.system.domain.entity.SysPost;
import com.vipboot.framework.mybatisplus.core.base.mapper.PlusBaseMapper;
import com.vipboot.platform.system.domain.vo.SysPostVo;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 岗位信息表 Mapper 接口
 * </p>
 *
 * @author daze
 * @since 2024-12-09
 */
public interface SysPostMapper extends PlusBaseMapper<SysPost> {

    @DataPermission({
            @DataColumn(key = "deptName", value = "dept_id"),
            @DataColumn(key = "userName", value = "create_by")
    })
    Page<SysPostVo> selectPagePostList(@Param("page") Page<SysPostVo> page, @Param(Constants.WRAPPER) Wrapper<SysPost> queryWrapper);

}
